﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryBll
{
   /// <summary>
   /// 耗材记录信息表
   /// </summary>
    public interface IConsumableRecordBll
    {
        /// <summary>
        /// 添加耗材记录信息
        /// </summary>
        /// <param name="consumableRecord"></param>
        /// <returns></returns>
        bool AddConsumableRecord(ConsumableRecord consumableRecord);

        /// <summary>
        /// 获取耗材记录集合、分页
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="consumbleId"></param>
        /// <returns></returns>
        object GetConsumableRecordListByPage(int page, int limit, out int count, string consumbleId);

        /// <summary>
        /// 软删除多个耗材记录
        /// </summary>
        /// <param name="consumableRecordIds"></param>
        //void SoftDeleteConsumableRecords(List<string> consumableRecordIds);
        bool DeleteConsumableRecords(string consumbleId);

        /// <summary>
        /// 文件上传
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="iD"></param>
        bool Upload(Stream stream, string userInfoId , out string msg);

        /// <summary>
        /// 文件下载
        /// </summary>
        /// <returns></returns>
        Stream GetDownloadDatas();
    }
}
